$(function(){
//屏幕滚动监听
$(window).scroll(function() {
	var mytop=$(window).scrollTop();
	if(mytop>=600){
		$('.h_bg').stop().animate({height:'60px'},1);
		$('.h_bg').css({background:'#565d67'});
		$('.h_body').stop().animate({width:'95%'},100);
		$('.h_logo').css({height:'60px'});
		$('.h_ul li').css("margin-top","10px");
		$('.h_logo img ').css("width","50%");
		$('.h_bottom').css("display","block");
		$('.h_ul li a').css("color","#fff");
	}else if(mytop>=60){
		$('.h_bg').stop().animate({height:'80px'},100);
		$('.h_bg').css({background:'#fff'});
		$('.h_body').stop().animate({width:'85%'},100);
		$('.h_logo').css({height:'80px'});
		$('.h_ul li').css("margin-top","20px");
		$('.h_logo img ').css("width","70%");
		$('.h_bottom').css("display","none");
		$('.h_ul li a').css("color","#565d67");
	}else{
		$('.h_bg').stop().animate({height:'80px'},100);
		$('.h_bg').css({background:'#565d67'});
		$('.h_body').stop().animate({width:'85%'},100);
		$('.h_logo').css({height:'80px'});
		$('.h_ul li').css("margin-top","20px");
		$('.h_logo img ').css("width","70%");
		$('.h_bottom').css("display","none");
		$('.h_ul li a').css("color","#fff");
	}
});
//菜单导航点击
$(".h_ul li").click(function(){
	$("html,body").stop().animate(
		{scrollTop: $($(this).children("a").attr("href")).offset().top},100).animate({scrollTop:$($(this).children("a").attr("href")).offset().top-60},300); 		
});
});